<!doctype html>
<html class="no-js">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>我的产品库</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <link rel="stylesheet" href="assets/css/amazeui.min.css">
   <link rel="stylesheet" href="assets/css/document.css">
    <script src="assets/js/jquery.min.js"></script>
	<script src="assets/js/amazeui.js"></script>
	<script src="assets/js/memu.js"></script>
	<script src="assets/js/PublicFunction.js"></script>	
	<script src="assets/js/baiduTemplate.js"></script>



  <style type="text/css">
  #pr_info{
  	white-space:nowrap;
    text-overflow:ellipsis;
    -o-text-overflow:ellipsis;
    overflow: hidden;
    margin: auto auto;
  }
 
	  
	 
	
	

  </style>
</head>
<body>



<div id="parent" >
<div data-am-sticky id="header">
	<header data-am-widget="header" class="am-header am-header-default">
		<div class="am-header-left am-header-nav">
			<a  href="javascript:backA()" class="">
				
				<i class="am-header-icon am-icon-chevron-left"></i>
			</a>
		</div>
		<h1 class="am-header-title" style="font-size:14px;">
			推广信息产品详情
		</h1>
		<div class="am-header-right am-header-nav">
			<a href="javascript:menu()" class="">
				<i class="am-header-icon am-icon-list-ul"></i>
			</a>
			
		</div>
	<!-- 遮罩-->
	<div class="am-modal am-modal-no-btn" tabindex="-1" id="memu-modal">
  
	</div>
	</header>
	</div>
	

	<div class="am-scrollable-horizontal" >
				<table class="am-table am-table-striped " style=" width: 100%;">
					
					<tr>
					<td>
						<h3 style="text-align:left;">推广内容:</h3>
						<!-- <blockquote>
  							<p>产品描述:产品描述:产品描述:产品描述:产品描述:产品描述:</p>
  							
						</blockquote> -->
						 <textarea class="" name="content" rows="3" id="doc-ta-1" style="width: 100%;" readonly="readonly"></textarea>
					</td>
					</tr>
				</table>
		</div>

	<div class="am-g" style="margin:auto auto;width:100%; padding-top:10px;">			
		<div class="am-u-lg-9" style="margin:auto auto;width:98%;">
				<div class="am-input-group am-input-group-primary" id="p_username" style="margin:auto auto;width:20%;">
					
				</div>
		</div>
	</div>
	

                  
<div data-am-widget="list_news" class="am-list-news am-list-news-default">

	<div class="am-list-news-bd"  id ="div_puc">
	<script type="text/javascript" id='puc_info'>
		<ul class="am-list">
		<!--缩略图在标题左边-->
		 <% for(var i=0;i<list.length;i++){ %> 
	
		<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left" />
			<div class="am-u-sm-4 am-list-thumb">
				
					<img src="<%=server%><%=list[i].imgUrl%>" alt="我很囧，你保重....晒晒旅行中的那些囧！" />
				
			</div>
			<div class=" am-u-sm-8 am-list-main" id="pr_info">
				<h3 class="am-list-item-hd">
					<a href="javascript:checkD('<%=list[i].product_id%>');" class=""><%=list[i].name%></a>
				</h3>
				<div class="am-list-item-text">所属类目：<%=list[i].productType%>  </div>
				<div class="am-list-item-text">品规：<%=list[i].specifications%>库存：<%=list[i].Stock%></div>
			
			</div>
		</li>
		
		<%}%>
	
     
		</ul>
			</script>
	</div>

</div>

 
</div>

 

<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default "id="">
  <ul class="am-navbar-nav am-cf am-avg-sm-4" style="width:100%; padding:0 0; ">
    <li style="background-color:#f90461;">
      <a id ="chack_a" >
        
        <span class="am-navbar-label">查看进口商信息</span>
      </a>
    </li>
    
  </ul>
</div>

<script type="text/javascript">
function init(w,h) {
	var  id=ArriveProductInfoFunction.getmsgid();
	var sjson = MsgFunction.getProductByMsgId(id);
	 if(sjson!=null&&sjson.length>0){
		 var json = strToJson(sjson);
		 var serverpath= Public_method.getServerPath();
		 var data={
				server:serverpath+"upload/",
					list:json
				} 
			var bat=baidu.template;
			var title_img_html=bat('puc_info',data);
			//渲染
			document.getElementById('div_puc').innerHTML=title_img_html;  
		
			var username = "<h2>"+ArriveProductInfoFunction.getusername()+"</h2>" ;
			var chack_a = "javascript:gotoUserInfo('"+ArriveProductInfoFunction.getusername()+"') ";
			
			$("#p_username").html(username);
			$("#chack_a").attr("href",chack_a);
		
	 }
	//生成menu
	generateMenu();
	
	//读取推广语
	var content ="";
	sjson = MsgFunction.getmsgjson();
	if(sjson!=null&&sjson.length>0){
		var json = strToJson(sjson);
		for(var i = 0;i<json.length;i++){
			if(json[i].id == id){
				content = json[i].content;
			}
		}
		$("#doc-ta-1").html(content);
	}
	
  };
 
  /** 查看产品详情**/
  function checkD(id){
	  ArriveProductInfoFunction.gotoArriveProductDetail(id);
  }
  
  function gotoUserInfo(username){
		Public_method.gotoUserInfo(username);
	}
</script>
</body>
</html>
